<template>
  <div>
    <button @click="runShellCommand">Run Shell Command</button>
  </div>
</template>
 
<script>
// import shelljs from 'shelljs';
 
export default {
  methods: {
    runShellCommand() {
      // const command = 'ls -l'; // 示例命令，列出当前目录下的文件和文件夹
      // const result = shelljs.exec(command, { silent: true });
      // console.log(result.stdout); // 打印命令执行结果
    }
  }
};
</script>